package com.unittec.zk.provider.work.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.unittec.zk.provider.work.entity.WorkPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface WorkPlanMapper extends BaseMapper<WorkPlan> {
    Page<Map<String, Object>> getWorkPlanPage(Page<Object> page, @Param("ew") LambdaQueryWrapper<WorkPlan> qw);


    Map<String, Object> getDetails1(@Param("id") String id);

    Page<Map<String, Object>> getMyWorkPage(Page<Object> pagemodel,
                                            @Param("planName") String planName,
                                            @Param("state") String state,
                                            @Param("now") String now,
                                            @Param("user") String user);
    /**
     *查询sys_user表的realname
     */

    String getUserById(String createUser);
}